import React from 'react';
import ReactDOM from 'react-dom/client';
// 导入项目根组件
import App from './App';
import store from './store'
import './App.scss';
import './css/all.scss';
import { Provider } from 'react-redux';
import { RouterProvider } from 'react-router-dom';
// 创建router实例对象并且配置路由对应关系
import router from './router';

// 把app跟组件渲染到toot上
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <React.StrictMode>
    <Provider store={store}>
      {/* <App /> */}
      <RouterProvider router={router}></RouterProvider>
    </Provider>
    
  </React.StrictMode>
);
